import request from '@/utils/request'

// 查询无危化处理列表
export function listTreatment(query) {
  return request({
    url: '/dgw/treatment/list',
    method: 'get',
    params: query
  })
}

// 查询无危化处理详细
export function getTreatment(id) {
  return request({
    url: '/dgw/treatment/' + id,
    method: 'get'
  })
}

// 新增无危化处理
export function addTreatment(data) {
  return request({
    url: '/dgw/treatment/add',
    method: 'post',
    data: data
  })
}

// 修改无危化处理
export function updateTreatment(data) {
  return request({
    url: '/dgw/treatment',
    method: 'put',
    data: data
  })
}

// 删除无危化处理
export function delTreatment(id) {
  return request({
    url: '/dgw/treatment/' + id,
    method: 'delete'
  })
}

// 导出无危化处理
export function exportTreatment(query) {
  return request({
    url: '/dgw/treatment/export',
    method: 'get',
    params: query
  })
}
